{#include file="header.html"#}

	{#if $action == 'list'#}
    <h3 class="title"><em>{#$pagetitle#}</em></h3>
	<div class="listbox">                    
		<form name="mform" method="post" action="{#$fileurl#}">
		<div class="toolbar">
			<select name="act" id="act" class="sel">
			<option value="del" style="color: #f00;">删除选定</option>
            <option value="passed" style="color: #083;">审核通过</option>
			<option value="cancel" style="color: #f60;">取消审核</option>
			</select>
			<input type="submit" class="btn" value="应用" onClick="if(IsCheck('com_id[]')==false){alert('请指定您要操作的站点ID！');return false;}else{return confirm('确认执行此操作吗？');}">
			<select class="sel" onChange="if(this.options[this.selectedIndex].value!=''){location='{#$fileurl#}?status='+this.options[this.selectedIndex].value+'&cate_id={#$cate_id#}&sort={#$sort#}&order={#$order#}{#$key_url#}';}">
			<option value="-1">所有状态</option>
			<option value="0" style="color: #f30;"{#opt_selected($status, 0)#}>待审核</option>
			<option value="1" style="color: #083;"{#opt_selected($status, 1)#}>已审核</option>
			</select>
		</div>
		
    	<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th><input type="checkbox" id="ChkAll" onClick="CheckAll(this.form)"></th>
				<th>ID</th>
				<th>网站名称</th>
				<th>昵称</th>
				<th>电子邮箱</th>
				<th>评论内容</th>
				<th>IP地址</th>
				<th>属性状态</th>
				<th>评论时间</th>
				<th>操作选项</th>
			</tr>
			{#foreach from=$comments item=row#}
			<tr>
				<td><input name="com_id[]" type="checkbox" value="{#$row.com_id#}"></td>
				<td>{#$row.com_id#}</td>
				<td>{#$row.web_name#}</td>
				<td>{#$row.com_nick#}</td>
				<td>{#$row.com_email#}</td>
				<td>{#$row.com_text#}</td>
				<td>{#$row.com_ip#}</td>
				<td>{#$row.com_attr#}</td>
				<td>{#$row.com_time#}</td>
				<td>{#$row.com_oper#}</td>
			</tr>
			{#foreachelse#}
			<tr><td colspan="10">无任何评论！</td></tr>
			{#/foreach#}
		</table>
        </form>
        <div class="pagebox">{#$showpage#}</div>
    </div>
    {#/if#}

{#include file="footer.html"#}